Skip to content

Fix SLAS client update and add open command#43

Merged
clavery merged 1 commit intomainfrom
bugfix/slas-client-update
Jan 13, 2026
Merged

Fix SLAS client update and add open command#43
clavery merged 1 commit intomainfrom
bugfix/slas-client-update

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Jan 13, 2026

Summary

Details

Bug #41 Fix

The SLAS API returns redirectUri as a pipe-delimited string (e.g., "url1|url2|url3") but the PUT endpoint expects an array of individual URLs. The update command was wrapping the entire pipe-delimited string as a single array element instead of splitting it.

Before:

"redirectUri": ["http://localhost:3000/callback|http://localhost:3000/social-callback"]

After:

"redirectUri": ["http://localhost:3000/callback", "http://localhost:3000/social-callback"]

New slas client open Command

Opens the SLAS Admin UI in the browser, deep-linking to a specific client:

b2c slas client open <clientId> --tenant-id <tenantId>

URL pattern: https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth-admin/v1/ui/client?clientId={clientId}&tenantId={tenantId}

Test plan

  • Run b2c slas client update --scopes <scope> <clientId> --tenant-id <tenantId> on a client with existing redirect URIs
  • Run b2c slas client open <clientId> --tenant-id <tenantId> and verify browser opens to correct URL
  • Run pnpm run build to verify compilation
  • Run pnpm --filter @salesforce/b2c-cli run lint to verify linting passes

Copy link
Copy Markdown
Contributor

@yhsieh1 yhsieh1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good.

@clavery clavery merged commit 69b7905 into main Jan 13, 2026
2 checks passed
@clavery clavery deleted the bugfix/slas-client-update branch January 27, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SLAS Client Update Does not Fully Upsert

2 participants